#!/usr/bin/env sh

EXT_HOME=@EXT@

cd $EXT_HOME

export XERCESCROOT=$EXT_HOME/xerces-c-src_2_8_0

# force 32 bit compile even on 64 bit machines
CFLAGS=-m32
CXXFLAGS=-m32
LDFLAGS=-m32
export CFLAGS
export CXXFLAGS
export LDFLAGS

cd xerces-c-src_2_8_0/src/xercesc
./runConfigure -p linux -P $EXT_HOME
make
make install
